package com.cip.master.model;

import com.cip.master.model.Academic;
import com.cip.master.model.ClassYear;
import com.cip.master.model.Section;
import com.cip.master.model.Examination;
import com.cip.admin.model.User;
import com.cip.master.model.Subject;

public class Result {
	
	private int id;
	private Integer tenantId;
	private ClassYear classYear;
	private Academic academic;
	private Subject subject;
	private Examination examination;
	private Section section;
	private int mark;
	private int maxMark;
	private int avgMark;
	private User user;
	
	public Result(){
		
	}
	public Result(ClassYear classYear,Academic academic,Subject subject,Examination examination,Section section,int mark,User user,Double avgMark){
		this.classYear=classYear;
		this.academic=academic;
		this.subject=subject;
		this.examination=examination;
		this.section=section;
		this.mark=mark;
		this.avgMark=avgMark.intValue();
		this.user=user;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setTenantId(Integer tenantId) {
		this.tenantId = tenantId;
	}

	public Integer getTenantId() {
		return tenantId;
	}		

	public ClassYear getClassYear() {
		return classYear;
	}

	public void setClassYear(ClassYear classYear) {
		this.classYear = classYear;
	}
	
	public Academic getAcademic() {
		return academic;
	}

	public void setAcademic(Academic academic) {
		this.academic = academic;
	}
	
	public Examination getExamination() {
		return examination;
	}

	public void setExamination(Examination examination) {
		this.examination = examination;
	}
	
	public Section getSection() {
		return section;
	}
	
	public void setSection(Section section) {
		this.section = section;
	}
	
	public int getMark() {
		return mark;
	}

	public void setMark(int mark) {
		this.mark = mark;
	}
	
	public int getAvgMark() {
		return avgMark;
	}
	
	public void setAvgMark(int avgMark) {
		this.avgMark = avgMark;
	}
	
	public int getMaxMark() {
		return maxMark;
	}
	
	public void setMaxMark(int maxMark) {
		this.maxMark = maxMark;
	}
	
	public User getUser() {
		return user;
	}
	
	public void setUser(User user) {
		this.user = user;
	}
	
	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}
	
}
